import LayoutAdmin from '@/views/layout/LayoutAdmin.vue'
import Layout from "@/views/layout/Layout";

export const adminRouter = {

    path: '/admin',
    name: 'admin',
    component: Layout,
    meta: {
        roles: ['AGENCY_OWNER','AGENCY_ADMIN','SCHOOL_ADMIN'],
    },
    children: [
        {
            path: '/admin',
            name: 'LayoutAdmin',
            component: LayoutAdmin,
            redirect: '/admin/manage-schools',
            children: [
                {
                    path: 'manage-schools',
                    name: 'manage_schools',
                    component: () => import('@/views/admin/manageSchools'),
                },
                {
                    path: 'manage-staffs',
                    name: 'manage_staffs',
                    component: () => import('@/views/admin/manageStaffs'),
                },
                {
                    path: 'close-account',
                    name: 'close_account',
                    component: () => import('@/views/admin/account/DeleteAccount.vue'),
                },
            ],
        },
    ]
}